package com.gzc.pm.ro;

import java.util.List;

import cn.skyclass.net.OperationResult;

import com.gzc.pm.bean.PpDataBean;
import com.gzc.pm.dao.PpDataDao;

public class PpDataRo {

	public List<Object> getListByDate(String startDate, String endDate){
		if(startDate == ""){
			startDate = null;
		}else{
			startDate = startDate.replaceAll("-", "");
		}
		if(endDate == ""){
			endDate = null;
		}else{
			endDate = endDate.replaceAll("-", "");
		}
		PpDataDao dao = new PpDataDao();
		return dao.getListByDate(startDate, endDate);
	}
	
	public boolean insertData(List<PpDataBean> list){
		PpDataDao dao = new PpDataDao();
		OperationResult or = dao.insertData(list);
		return or.isSuccessful();
	}
}
